package utils

import (
	"fmt"
	"log"
)

// Debug Debugging
const Debug = 0

func DPrintf(format string, a ...interface{}) (n int, err error) {
	if Debug > 0 {
		log.Printf(format, a...)
	}
	return
}

// 定义一些基本的颜色代码
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Purple = "\033[35m"
)

func LogC(color string, format string, a ...interface{}) (n int, err error) {
	return fmt.Printf(color+format+Reset, a...)
}
